import os
from mcp.server.fastmcp import FastMCP
mcp = FastMCP()

@mcp.tool()
def get_desktop_files():
   """获取桌面上的文件列表"""
   return os.listdir(os.path.expanduser("~/Desktop"))

@mcp.tool()
def openNotepad():
    return os.system('notepad.exe')

@mcp.tool()
def openCalc():
    return os.system('calc.exe')


@mcp.tool()
def openKuGouMusic():
    return os.popen("E:\KuGou\KGMusic\KuGou.exe").read()
# if __name__ == '__main__':

mcp.run(transport='stdio')